package com.example.service;

import com.example.config.IndexTwoServiceHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "colony-test2",fallback = IndexTwoServiceHystrix.class)
public interface IndexTwoSerice {

    /**
     * 调用接口
     */
    @GetMapping("/hello/{name}")
    public String login(@PathVariable(name = "name")String name);
}
